﻿using Learun.Util;
using System;
using SqlSugar;

namespace Learun.Application.Base.SystemModule
{
    /// <summary>
    /// 版 本 PIT-ADMS V7.0.3 敏捷开发框架
    /// Copyright (c) 2013-2018 Hexagon PPM
    /// 创建人：研发部
    /// 日 期：2017.03.08
    /// 描 述：附件管理
    /// </summary>
    //todo 被引用，需要处理
    [SugarTable(TableName = "LR_BASE_ANNEXESFILE")]
    public class AnnexesFileEntity
    {
        #region 实体成员
        /// <summary>
        /// 文件主键
        /// </summary>
        /// <returns></returns>
        [SugarColumn(IsPrimaryKey = true)]
        public string F_Id { get; set; }
        /// <summary>
        /// 附件夹主键
        /// </summary>
        public string F_FolderId { get; set; }
        /// <summary>
        /// 文件名称
        /// </summary>
        /// <returns></returns>
        public string F_FileName { get; set; }
        /// <summary>
        /// 文件路径
        /// </summary>
        /// <returns></returns>
        public string F_FilePath { get; set; }
        /// <summary>
        /// 文件大小
        /// </summary>
        /// <returns></returns>
        public string F_FileSize { get; set; } = "0";
        /// <summary>
        /// 文件后缀
        /// </summary>
        /// <returns></returns>
        public string F_FileExtensions { get; set; }
        /// <summary>
        /// 文件类型
        /// </summary>
        /// <returns></returns>
        public string F_FileType { get; set; }
        /// <summary>
        /// 下载次数
        /// </summary>
        /// <returns></returns>
        public int? F_DownloadCount { get; set; }
        /// <summary>
        /// 创建日期
        /// </summary>
        /// <returns></returns>
        public DateTime? F_CreateDate { get; set; }
        /// <summary>
        /// 创建用户主键
        /// </summary>
        /// <returns></returns>
        public string F_CreateUserId { get; set; }
        /// <summary>
        /// 创建用户
        /// </summary>
        /// <returns></returns>
        public string F_CreateUserName { get; set; }
        /// <summary>
        /// 缩略图路径
        /// </summary>
        /// <returns></returns>
        public string F_ThumbnailImgPath { get; set; }
        /// <summary>
        /// WebFileID文件 祝幸 20191112
        /// </summary>
        /// <returns></returns>
        public string F_WebFileID { get; set; }
        #endregion

        #region 扩展操作
        /// <summary>
        /// 新增调用
        /// </summary>
        public  void Create()
        {
            this.F_CreateDate = Time.MySqlTime;  
        }
        #endregion
    }
}
